<?php

require   'vendor/autoload.php';
 use superwindcloud\fixer;


$json = '{ "name": "John", "age": 30, \'city\': "New York" }';

$fixer = new fixer;
  $fixer->fix($json);
exit ;
$json = (new Fixer)->fix('{"a":1,"b":2');
var_dump($json);
exit;

// {"a":1,"b":2}

$json = (new Fixer)->fix('{"a":1,"b":true,');
// {"a":1,"b":true}

$json = (new Fixer)->fix('{"b":[1,[{"b":1,"c"');
var_dump($json);


$json  = $fixer->fix( "{name: 'John'}");
var_dump($json);